< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03020413.xhp

(section: rmdir) (bookmark: bm_id3148947)
RmDir statement

RmDir ステートメント

RmDir Statement [Runtime]
RmDir ステートメント [実行時](hd_id3148947.1)

Deletes an existing directory from a data medium.
データ記録媒体上にある既存ディレクトリを削除します。(par_id3149457.2)

(/section: rmdir)

Syntax:
構文:(hd_id3153361.3)

RmDir Text As String
RmDir Text As String(par_id3154367.4)

Parameters:
パラメータ:(hd_id3156281.5)

Text: Any string expression that specifies the name and path of the directory that you want to delete. You can also use URL notation.
Text: 削除するディレクトリの名前およびパスを指定する文字列表式。またURL 指定を用いることもできます。(par_id3151042.6)

If the path is not determined, the RmDir Statement searches for the directory that you want to delete in the current path. If it is not found there, an error message appears.
有効なパスが指定されなかった場合、RmDir ステートメント は、現在のパスの中で該当ディレクトリを検索します。該当するものが確認されないと、エラーメッセージが表示されます。(par_id3153192.7)

(embed text/sbasic/shared/00000003.xhp#errorcode : linkinfo)

Error Codes

エラーコード(hd_id3152869.37)

(/embed text/sbasic/shared/00000003.xhp#errorcode)

(embed text/sbasic/shared/00000003.xhp#err5 : linkinfo)

5 Invalid procedure call
5 無効なプロシージャー呼び出しです (par_id3150891.41)

(/embed text/sbasic/shared/00000003.xhp#err5)

(embed text/sbasic/shared/00000003.xhp#err76 : linkinfo)

76 Path not found
76 パスが見つかりません (par_id3150477.75)

(/embed text/sbasic/shared/00000003.xhp#err76)

Example:
例:(hd_id3145271.8)

Sub ExampleRmDir
Sub ExampleRmDir(par_id3156442.9)

MkDir "C:\Test2"
MkDir "C:\Test2"(par_id3154319.10)

ChDir "C:\test2"
ChDir "C:\test2"(par_id3159154.11)

msgbox Curdir
msgbox Curdir(par_id3151112.12)

ChDir "\"
ChDir "\"(par_id3147427.13)

RmDir "C:\test2"
RmDir "C:\test2"(par_id3153188.14)

end sub
end sub(par_id3146120.15)


< Prev / Next >